const testPathIgnorePatterns = ['/utils/']

module.exports = {
  testRegex: '((\\.|/*.)(test))\\.js?$',
  testPathIgnorePatterns: ['/node_modules/', '/__coverage__/'].concat(testPathIgnorePatterns),
  coverageDirectory: '__coverage__/',
  coveragePathIgnorePatterns: ['/node_modules/', '/__coverage__/', 'tests/mocks'],
  setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
  moduleNameMapper: {
    '^@/(.*)$': '<rootDir>/src/$1',
    '^~mock/(.*)$': '<rootDir>/tests/mocks/$1',
    '\\.(jpg|jpeg|png|gif)$': '<rootDir>/tests/mocks/fileMock.js',
    '.*\\.(css|less|scss)$': '<rootDir>/tests/mocks/styleMock.js'
  },
  globals: {}
}
